package com.xhh.apis.check;

import com.xhh.model.common.dtos.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("check-service")
public interface ICheckClient {

    @GetMapping("check/{id}")
    ResponseResult checkIdentity(@PathVariable("id") Long userId);

    @GetMapping("/check/getProvinceCityLit")
    ResponseResult getProCityList();

    @ApiOperation("根据单位id获取单位信息")
    @GetMapping("/check/getUnityById/{unityId}")
    ResponseResult getUnityById(@PathVariable("unityId") Long unityId);

    @ApiOperation("根据单位编码获取单位信息")
    @GetMapping("/check/getUnityByCode/{uCode}")
    ResponseResult getUnityByCode(@PathVariable("uCode") String uCode);

    @ApiOperation("根据用户id获取角色")
    @GetMapping("/check/getIdentity/{userId}")
    ResponseResult getIdentity(@PathVariable("userId") Long userId);
}
